<%--
  Created by IntelliJ IDEA.
  User: xxz
  Date: 2021/7/9
  Time: 13:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="../js/bootstrap.js"></script>
    <script type="text/javascript" src="../js/ckform.js"></script>
    <script type="text/javascript" src="../js/common.js"></script>
    <!-- 引入 ECharts 文件 -->
    <script src="../js/echarts.min.js"></script>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <script src="../js/paging.js"></script>
    <link href=" http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet" >
    <stript scr="http://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></stript>
    <script scr="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>

    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
    <script>
        function closewin(){
            window.close();
        }
    </script>
</head>
<body>
<table id="chargeTab" class="table table-bordered table-hover definewidth m10">
    <tr align="center">
        <td colspan="2">订单详情</td>
    </tr>
    <tr>
        <td>收货信息：</td>
        <td>
            ${os[0].username}, ${os[0].tel}, ${os[0].address}
        </td>
    </tr>
    <tr>
        <td>商品：</td>

        <td>
    <c:forEach items="${tp}" var="ttp" varStatus="c">
            <c:if test="${ooid==ttp.ordersid}">
                <img src="${pageContext.request.contextPath}/img/${ttp.picture}" width="80" height="50">${ttp.name}&nbsp;x&nbsp;${ttp.p_numb}
                <a class="btn btn-default btn-sm" href="${pageContext.request.contextPath}/ProductServlet?action=FindProductById&uid=${userid}&pid=${ttp.productid}">评论</a>
                <input name="pid" type="hidden" value="${ttp.ordersid}">
            </c:if >
    </c:forEach>
        </td>

    </tr>

        <td>下单时间：</td>
        <td>${os[0].ordertime}</td>
    </tr>
    <tr>
        <td>状态：</td>
        <td>${os[0].orderstatus}</td>
    </tr>
    <tr>
        <td>支付方式：</td>
        <td>${os[0].payment}</td>
    </tr>
    <td>总价：</td>
    <td>${os[0].ordersum}</td>
    </tr>
    <tr align="center"> <td colspan="2"><a class="btn btn-default btn-sm" href="javascript:closewin();">关闭</a></td></tr>
</table>

</body>
</html>
